Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(ecs): Add SystemControls to ContainerDefinition #16970

Merged
merged 5 commits into from
Nov 12, 2021
Merged

feat(ecs): Add SystemControls to ContainerDefinition #16970

merged 5 commits into from
Nov 12, 2021

Conversation

ayush987goyal
Copy link
Contributor

feat(ecs): Add SystemControls to ContainerDefinition

closes #16025

Note:

  1. Couldn't find the good place in the current readme for this feature to be added. So the PR linter would fail. Let me know if there is indeed a correct place to put this in any readme.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license

@gitpod-io
Copy link

gitpod-io bot commented Oct 14, 2021

@ayush987goyal
Copy link
Contributor Author

Hi @madeline-k , mind taking a look at this? :)

Copy link
Contributor

@madeline-k madeline-k left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @ayush987goyal, thanks for opening this PR!

  • Even though the feature is small, please add a unit test, testing the systemControls options.
  • If there is not an existing README section that makes sense to add this feature to, please create a new one! The README addition can be as short as just a one-two sentence description of what the feature is, and a code example using it.

@madeline-k
Copy link
Contributor

oh, just saw that you already extended an existing unit test. So, this is probably okay on testing. But if you think it makes sense to add an additional unit test testing the minimal ContainerDefinition using this new option, that could be useful.

@mergify mergify bot dismissed madeline-k’s stale review October 19, 2021 16:15

Pull request has been modified.

@peterwoodworth peterwoodworth changed the title feat(ecs): Add SystemControls to ContainerDefinition feat(ecs): Add SystemControls to ContainerDefinition Oct 21, 2021
@github-actions github-actions bot added the @aws-cdk/aws-ecs Related to Amazon Elastic Container label Oct 21, 2021
@ayush987goyal
Copy link
Contributor Author

@madeline-k Just checking in to see if you got a chance to take a look at this change?

Copy link
Contributor

@madeline-k madeline-k left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great! Just some minor comments for the README

packages/@aws-cdk/aws-ecs/README.md Outdated Show resolved Hide resolved
Comment on lines +435 to +437
declare const taskDefinition: ecs.TaskDefinition;

taskDefinition.addContainer('container', {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this a working example? Doesn't this need to actually instantiate a TaskDefinition first?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes this is not a working example since the section is concerned about the container definition of an existing taskDefinition. The same is being followed across the README.

@mergify mergify bot dismissed madeline-k’s stale review October 25, 2021 17:14

Pull request has been modified.

Copy link
Contributor

@madeline-k madeline-k left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for contributing! Apologies for the delay in reviewing.

@mergify
Copy link
Contributor

mergify bot commented Nov 12, 2021

Thank you for contributing! Your pull request will be updated from master and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork).

@aws-cdk-automation
Copy link
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: AutoBuildProject89A8053A-LhjRyN9kxr8o
  • Commit ID: 81a92ab
  • Result: SUCCEEDED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

@mergify mergify bot merged commit b12a2c6 into aws:master Nov 12, 2021
@mergify
Copy link
Contributor

mergify bot commented Nov 12, 2021

Thank you for contributing! Your pull request will be updated from master and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork).

@ayush987goyal ayush987goyal deleted the pr/ecs-containerDef-systemControls branch November 13, 2021 02:13
TikiTDO pushed a commit to TikiTDO/aws-cdk that referenced this pull request Feb 21, 2022
feat(ecs): Add SystemControls to ContainerDefinition

closes aws#16025 

Note:
1. Couldn't find the good place in the current readme for this feature to be added. So the PR linter would fail. Let me know if there is indeed a correct place to put this in any readme.

----

*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
@aws-cdk/aws-ecs Related to Amazon Elastic Container
Projects
None yet
Development

Successfully merging this pull request may close these issues.

(ECS): ability to add SystemControls to Container Definition
3 participants